#ifndef STATIC_SPRITE_WIDGET_HPP
#define STATIC_SPRITE_WIDGET_HPP

#include <QGraphicsWidget>
#include <QtGui>
#include "StaticSprite.hpp"
#include <iostream>

using namespace std;

class StaticSpriteWidget : public QGraphicsWidget
{
	Q_OBJECT
	
	public:
		StaticSpriteWidget(StaticSprite* spr);
		~StaticSpriteWidget();

		void mousePressEvent(QGraphicsSceneMouseEvent *event);
		void setPos(int x, int y);
		void setDepth(int z);
		void setTransparent(bool val);
		
		// the sprite widget must be deleted using this method
		// it deletes the static sprite, and the static sprite destructor
		// will call this object destructor !
		// pixmap will be deleted when the program will be cleared
		void del();
		
		
	signals:
		void clicked();
		
	protected:
		StaticSprite*	spr;
		
	
};

#endif
